package com.itentbase.match.pojo.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;


/**
 * 必发数据实体类
 *
 * @author wjl
 * @date 2024-12-26 11:50:53
 */
@Data
public class BetFairData {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer matchId;  //足球赛事ID
    private Integer type;  //0客队、1平局、3主队
    private BigDecimal odds; //赔率
    private BigDecimal rate; //概率
    private BigDecimal betFair; //必发
    private BigDecimal price; //成交价
    private BigDecimal number; //成交量
    private BigDecimal winOrLose; //庄家盈亏
    private BigDecimal betFairIndex; //必发指数
    private BigDecimal coldOrHotIndex;          //冷热指数
    private BigDecimal phaseIndex;          //冷热指数

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

}
